package com.chongqing.shiro.service;

import com.chongqing.shiro.model.entity.Permission;
import com.chongqing.shiro.model.entity.Role;
import com.chongqing.shiro.model.entity.User;
import com.chongqing.shiro.model.vo.ResponseVo;

import java.util.List;
import java.util.Set;

public interface RoleService {

    Set<String> findRoleByUserId(String userId);

    List<Role> selectRoles(Role role);

    int insert(Role role);

    List<User> findRoleId(String roleId);

    int updateStatusBatch(List<String> roleIdsList, Integer statusInvalid);

    List<User> findRoleIds(List<String> roleIdsList);

    Role findById(Integer id);

    int updateByRoleId(Role role);

    List<Permission> findPermissionByRoleId(String roleId);

    ResponseVo addAssifnPermission(String roleId, List<String> permissionIdList);

    List<User> findByRoleId(String roleId);
}
